<template>
	<view class="" style="display: flex;flex-direction: column;">
		<image src="../../static/images/me2.jpg" style="width: 100%;height: 375upx;"></image>
		<view class="aa" @click="msgPer()">
			<span style="margin-right: 20upx;">个人信息:{{usersName}}</span>
		</view>
		<view class="aa" @click="zuowei()">
			座位查询
		</view>
		<view class="aa" @click="zuowei()">
			讨论室查询
		</view>
		<view class="aa" @click="jiejue()">
			借阅查询
		</view>
		<view class="aa">
			<navigator url="../login/login">退出</navigator>
		</view>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				usersName: '',
				userPay: '',
				dataList:[]
			}
		},
		onLoad() {
			var a = uni.getStorageSync('usersName')
			this.usersName=a
			this.initQd()
		},
		methods: {
			initQd(){
				var _this=this
				uni.request({
					url:_this.serverUrl+"renren/usersign/list",
					success(res) {
						_this.dataList=res.data.page.list
					}
				})
			},
			zuowei(){
				uni.navigateTo({
					url:'./room'
				})
			},
			jiejue(){
				uni.navigateTo({
					url:'./jieyue'
				})
			},
		
			msgPer(){
				var a = uni.getStorageSync('usersName')
				this.usersName=a
				if (a == "" || a == null) {
					uni.navigateTo({
						url:'../login/login'
					})
					return false
				}
			}
		}
	}
</script>

<style>
	.aa {
		margin-top: 20upx;
		font-weight: bold;
		margin-left: 20upx;
		padding: 20upx;
		font-size: 23upx;
		border-bottom: 1upx solid #CCCCCC;
	}
</style>
